﻿using System;
using System.Collections.Generic;
using HeritageAcademy.Shared;

namespace HeritageAcademy.Models.DataModels
{
    public class Chapter : ModelBase
    {
        #region Parameters 
        
        private List<Chapter> _chapters = new List<Chapter>();
        private string _class = String.Empty;
        
        #endregion

        #region Properties 
        
        public List<Chapter> Chapters
        {
            get { return _chapters; }
            set
            {
                _chapters = value;
                RaisePropertyChanged("Chapters");
            }
        }
        public string FolderName { get; set; }
        public int Index { get; set; }
        public string Name { get; set; }
        public string OriginalId { get; set; }
        public int ParagraphCount { get; set; }
        public int ParagraphStartingIndex { get; set; }
        public int PlayOrder { get; set; }
        public string SourceFile { get; set; }
        public string SourceID { get; set; }
        public string Title { get; set; }
        
        #endregion Properties 

        #region Public Methods 
        public string GetClass()
        {
            return _class;
        }

        public void SetClass(string pClass)
        {
            _class = pClass;
        }
        #endregion Public Methods 
    }
}